#!/bin/bash

PROCESS_NUM=$(ps -ef | grep "org.apache.camel.spring.Mai[n]" | awk '{print $2}')

if [ -n "$PROCESS_NUM" ];
then
	kill -9 $PROCESS_NUM
fi

rm -rf ./activemq-data

java -classpath .:./classes:./lib/* org.apache.camel.spring.Main &

PID=$!

echo "PPRC Project Is Running ... Process ID: $PID"
